package com.lq.educationsystem.lqsubject.mapper;

import com.lq.educationsystem.lqsubject.entiy.SubjectTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【subject_tb】的数据库操作Mapper
* @createDate 2024-04-13 12:28:53
* @Entity com.lq.educationsystem.lqsubject.entiy.SubjectTb
*/
public interface SubjectTbMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SubjectTb record);

    int insertSelective(SubjectTb record);

    SubjectTb selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SubjectTb record);

    int updateByPrimaryKey(SubjectTb record);

    List<SubjectTb> queryList(@Param("start") int start,@Param("pageSize") Integer pageSize,@Param("subjectTb") SubjectTb subjectTb);

    int queryCount(@Param("subjectTb") SubjectTb subjectTb);

    /**
     * 数据查询
     * @param subjectIdListInfo
     * @return
     */
    List<SubjectTb> queryBatchSubjectInfoBySubjectIdList(@Param("subjectIdListInfo") List<Integer> subjectIdListInfo);
}
